Identifikatsiya operatorlari ma'lumotlarning xotira birligini aniqlash uchun ishlatiladi.
Xotira... Python xotirani hisobga olmaydi deyishadiku? CPython ob'ektlari xotirani boshqarishni optimallashtirish uchun juda ko'p xotiradan foydalanadi.Bunga misol CPython -5 dan 256 gacha bo'lgan barcha butun sonlarning global ro'yxatini saqlaydi va bularning hammasi uchun 266 * 24 = 6384 baytni oldindan ajratadi.
Ma'lumotlar turi nima u? Ma'lumotlar turiga namunalar: str satr 'salom' int butun sonlar 2 float haqiqiy sonlar 2.03 bool mantiqiy True yoki False
a = 28 b = 19 a va b o'zgaruvchi 28 va 19 ma'lumot ma'lumot turi int
a va b o'zgaruvchilar ma'lumot turi bir xil lekin xotirada joylashuvi farq qilishi mumkin. Ma'lumot xotirada joylashishini ko'rish uchun id() funktsiyasidan foydalanamiz.
is - Agar ikkala o'zgaruvchi bir xil ob'ekt bo'lsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi
print(a is b) False print(True is False) False print(False is False) True print(True is True) True
is not - Agar ikkala o'zgaruvchi bir xil ob'ekt bo'lmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi print(a is not b) True a = 5 b = 5 print(a is not b) False
Identifikatsiya operatorlari ma'lumotlarning xotira birligini aniqlash uchun ishlatiladi.
Xotira... Python xotirani hisobga olmaydi deyishadiku? CPython ob'ektlari xotirani boshqarishni optimallashtirish uchun juda ko'p xotiradan foydalanadi.Bunga misol CPython -5 dan 256 gacha bo'lgan barcha butun sonlarning global ro'yxatini saqlaydi va bularning hammasi uchun 266 * 24 = 6384 baytni oldindan ajratadi.
Ma'lumotlar turi nima u? Ma'lumotlar turiga namunalar: str satr 'salom' int butun sonlar 2 float haqiqiy sonlar 2.03 bool mantiqiy True yoki False
a = 28 b = 19 a va b o'zgaruvchi 28 va 19 ma'lumot ma'lumot turi int
a va b o'zgaruvchilar ma'lumot turi bir xil lekin xotirada joylashuvi farq qilishi mumkin. Ma'lumot xotirada joylashishini ko'rish uchun id() funktsiyasidan foydalanamiz.
is - Agar ikkala o'zgaruvchi bir xil ob'ekt bo'lsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi
print(a is b) False print(True is False) False print(False is False) True print(True is True) True
is not - Agar ikkala o'zgaruvchi bir xil ob'ekt bo'lmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi print(a is not b) True a = 5 b = 5 print(a is not b) False
You guessed it – the internet is your friend. A good place to start looking for Telegram channels is Reddit. This is one of the biggest sites on the internet, with millions of communities, including those from Telegram.Then, you can search one of the many dedicated websites for Telegram channel searching. One of them is telegram-group.com. This website has many categories and a really simple user interface. Another great site is telegram channels.me. It has even more channels than the previous one, and an even better user experience.These are just some of the many available websites. You can look them up online if you’re not satisfied with these two. All of these sites list only public channels. If you want to join a private channel, you’ll have to ask one of its members to invite you.
Telegram Auto-Delete Messages in Any Chat
Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.